
export function getsn() {
	const STR="9007";
	let NUM="";
	const DATA=new Date();
	const YEARS=DATA.getFullYear();
	const MONTHS=Number(DATA.getMonth())+1<10?"0"+(Number(DATA.getMonth())+1):Number(DATA.getMonth())+1;
	const DAYS=DATA.getDate()<10?"0"+DATA.getDate():DATA.getDate();
	const HOURS=DATA.getHours()<10?"0"+DATA.getHours():DATA.getHours();
  	const MINUTES=DATA.getMinutes()<10?"0"+DATA.getMinutes():DATA.getMinutes();
  	const SECONDS=DATA.getSeconds()<10?"0"+DATA.getSeconds():DATA.getSeconds();
  	const TIMESTAMP=YEARS+MONTHS+DAYS+HOURS+MINUTES+SECONDS;
  	for (let i=0;i<6;i++){
  		NUM+=parseInt(Math.random()*9)
  	};
  	return STR+TIMESTAMP+NUM;
}
export function getScRstNo(APP_NO) {
	let NUM="";
	const DATA=new Date();
	const YEARS=DATA.getFullYear();
	const MONTHS=Number(DATA.getMonth())+1<10?"0"+(Number(DATA.getMonth())+1):Number(DATA.getMonth())+1;
	const DAYS=DATA.getDate()<10?"0"+DATA.getDate():DATA.getDate();
	const HOURS=DATA.getHours()<10?"0"+DATA.getHours():DATA.getHours();
  	const MINUTES=DATA.getMinutes()<10?"0"+DATA.getMinutes():DATA.getMinutes();
	const SECONDS=DATA.getSeconds()<10?"0"+DATA.getSeconds():DATA.getSeconds();
	for (let i=0;i<4;i++){
		NUM+=parseInt(Math.random()*9)
	};
  	const TIMESTAMP=(YEARS+"").substring(2,4)+MONTHS+DAYS+HOURS+MINUTES+SECONDS+NUM;
  	return APP_NO + TIMESTAMP;
}
export function getYYYYMM() {
	const DATA=new Date();
	const YEARS=DATA.getFullYear();
	const MONTHS=Number(DATA.getMonth())+1<10?"0"+(Number(DATA.getMonth())+1):Number(DATA.getMonth())+1;
  	const TIMESTAMP=YEARS+MONTHS;
  	return TIMESTAMP;
}
export function getYYYYMMddDate() {
	const DATA=new Date();
	const YEARS=DATA.getFullYear();
	const MONTHS=Number(DATA.getMonth())+1<10?"0"+(Number(DATA.getMonth())+1):Number(DATA.getMonth())+1;
	const DAYS=DATA.getDate()<10?"0"+DATA.getDate():DATA.getDate();
  	const TIMESTAMP=YEARS + "-" + MONTHS + "-" + DAYS;
  	return TIMESTAMP;
}
export function getFileYYYYMMDDHH24MISS() {
	let NUM="";
	const DATA=new Date();
	const YEARS=DATA.getFullYear();
	const MONTHS=Number(DATA.getMonth())+1<10?"0"+(Number(DATA.getMonth())+1):Number(DATA.getMonth())+1;
	const DAYS=DATA.getDate()<10?"0"+DATA.getDate():DATA.getDate();
	const HOURS=DATA.getHours()<10?"0"+DATA.getHours():DATA.getHours();
  	const MINUTES=DATA.getMinutes()<10?"0"+DATA.getMinutes():DATA.getMinutes();
  	const SECONDS=DATA.getSeconds()<10?"0"+DATA.getSeconds():DATA.getSeconds();
	const TIMESTAMP=YEARS+MONTHS+DAYS+HOURS+MINUTES+SECONDS;
	for (let i=0;i<4;i++){
		NUM+=parseInt(Math.random()*9)
	};
  	return TIMESTAMP + NUM;
}